import request from '@/utils/request'

// 查询退出申请列表
export function listDealExit(query) {
  return request({
    url: '/exit/dealExit/list',
    method: 'get',
    params: query
  })
}

// 查询退出申请详细
export function getDealExit(id) {
  return request({
    url: '/exit/dealExit/' + id,
    method: 'get'
  })
}

// 查询退出申请详细
export function getDealExitList(dealId) {
  return request({
    url: '/exit/dealExit/list/' + dealId,
    method: 'get'
  })
}

// 保存退出申请
export function saveDealExit(data) {
  return request({
    url: '/exit/dealExit/save',
    method: 'post',
    data: data
  })
}

// 删除退出申请
export function delDealExit(id) {
  return request({
    url: '/exit/dealExit/' + id,
    method: 'delete'
  })
}

// 导出退出申请
export function exportDealExit(query) {
  return request({
    url: '/exit/dealExit/export',
    method: 'get',
    params: query
  })
}

// 获取退出申请基本信息
export function getExitBaseInfo(query) {
  return request({
    url: '/exit/dealExit/getExitBaseInfo',
    method: 'get',
    params: { 'dealId': query }
  })
}

// 获取流程审批通过的退出申请
export function findProcessEndByDealId(dealId) {
  return request({
    url: '/exit/dealExit/findProcessEndByDealId/' + dealId,
    method: 'get'
  })
}

